<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@include file="topBar.jsp" %>
<%@include file="leftBar.jsp" %>
<%@include file="bottomBar.jsp" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>修改密码</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style type="text/css">
    	#myDiv{position: absolute;left: 400px;top: 250px;font-size: 15px;}
        table {
            margin: 0 auto;
            width: 700px;
            border:1px solid black;
            border-collapse: collapse;/*关键代码*/
        }
        th,td {
            text-align: center;
            border: 1px solid black;
        }
	</style>
</head>

<body>
<div id="myDiv">
	<c:forEach items="${requestScope.userList }" var="user">
	<form action="UserServlet?opr=updatePwd&id=${user.id }" method="post">
		<table>
			<tr>
				<td>用户ID</td>
				<td><span>${user.id }</span></td>
			</tr>
			<tr>
				<td>电&nbsp; &nbsp; 话</td>
				<td><span>${user.mobile }</span></td>
			</tr>
			<tr>
				<td>邮&nbsp; &nbsp; 箱</td>
				<td><span>${user.email }</span></td>
			</tr>
			<tr>
				<td>地&nbsp; &nbsp; 址</td>
				<td><span>${user.userAddress }</span></td>
			</tr>
			<tr>
				<td>密&nbsp; &nbsp; 码</td>
				<td><span><input type="text" id="password" name="password"/></span></td>
			</tr>
			<tr>
				<td>身份证号</td>
				<td><span>${user.identityCode }</span></td>
			</tr>
			<tr>
				<td>类&nbsp; &nbsp; 型</td>
				<td>
					<span>
						<c:if test="${user.type==0 }">普通会员</c:if>
						<c:if test="${user.type==1 }">管理员</c:if>
					</span>
				</td>
			</tr>
			<tr>
				<td>&nbsp; &nbsp; </td>
				<td><span><input type="submit" value="确认修改"/></span></td>
			</tr>
		</table>
	</form>
	</c:forEach>
</div>
</body>
</html>
